﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteTwoColumn.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.Models.EnhancedAccountModel>" %>
<%@ Import Namespace="Beeldbankmvc.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%=DynamicContent.getTitle(Request.Path) %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMiddleColumn" runat="server">
    <h1><%=DynamicContent.getTitle(Request.Path) %></h1>
    <%=DynamicContent.getBodyText(Request.Path)%>

    <div id="register">
        <% using (Html.BeginForm())
           { %>
        <%: Html.ValidationSummary(true, "Het aanmaken van het account is mislukt! Corrigeer de fouten en probeer het opnieuw.")%>
        <fieldset>
            <legend>Account informatie</legend>
            <p>
                <label for="ddlHeader">Aanhef</label>
                <%: Html.DropDownList("ddlHeader", new SelectList(ViewData["HeaderList"] as IEnumerable, "Value", "Text", null))%>
                <%: Html.ValidationMessageFor(m => m.Header)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.FirstName) %>
                <%: Html.TextBoxFor(m => m.FirstName)%>
                <%: Html.ValidationMessageFor(m => m.FirstName)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Prepositions) %>
                <%: Html.TextBoxFor(m => m.Prepositions)%>
                <%: Html.ValidationMessageFor(m => m.Prepositions)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.LastName)%>
                <%: Html.TextBoxFor(m => m.LastName)%>
                <%: Html.ValidationMessageFor(m => m.LastName)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Phone)%>
                <%: Html.TextBoxFor(m => m.Phone)%>
                <%: Html.ValidationMessageFor(m => m.Phone)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.Address)%>
                <%: Html.TextBoxFor(m => m.Address)%>
                <%: Html.ValidationMessageFor(m => m.Address)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.AddressNr)%>
                <%: Html.TextBoxFor(m => m.AddressNr)%>
                <%: Html.ValidationMessageFor(m => m.AddressNr)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.ZipCode)%>
                <%: Html.TextBoxFor(m => m.ZipCode)%>
                <%: Html.ValidationMessageFor(m => m.ZipCode)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.City)%>
                <%: Html.TextBoxFor(m => m.City)%>
                <%: Html.ValidationMessageFor(m => m.City)%>
            </p>
            <p>
                <label for="ddlCountry">Land</label>
                <%: Html.DropDownList("ddlCountry", new SelectList(ViewData["CountryList"] as IEnumerable, "Value", "Text", null))%>
                <%: Html.ValidationMessageFor(m => m.Country)%>
            </p>
            <p>
                <strong>Factuur adres</strong>
            </p>
            <p>
                <%: Html.LabelFor(m => m.CompanyName)%>
                <%: Html.TextBoxFor(m => m.CompanyName)%>
                <%: Html.ValidationMessageFor(m => m.CompanyName)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.FactuurAddress)%>
                <%: Html.TextBoxFor(m => m.FactuurAddress)%>
                <%: Html.ValidationMessageFor(m => m.FactuurAddress)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.FactuurAddressNr)%>
                <%: Html.TextBoxFor(m => m.FactuurAddressNr)%>
                <%: Html.ValidationMessageFor(m => m.FactuurAddressNr)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.FactuurZipCode)%>
                <%: Html.TextBoxFor(m => m.FactuurZipCode)%>
                <%: Html.ValidationMessageFor(m => m.FactuurZipCode)%>
            </p>
            <p>
                <%: Html.LabelFor(m => m.FactuurCity)%>
                <%: Html.TextBoxFor(m => m.FactuurCity)%>
                <%: Html.ValidationMessageFor(m => m.FactuurCity)%>
            </p>
            <p>
                <label for="ddlFactuurLand">Land</label>
                <%: Html.DropDownList("ddlFactuurLand", new SelectList(ViewData["CountryList"] as IEnumerable, "Value", "Text", null))%>
                <%: Html.ValidationMessageFor(m => m.FactuurLand)%>
            </p>

        </fieldset>
        <p>
            <input type="submit" class="button" value="Wijzigen" />
        </p>
        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderRightColumn" runat="server">
</asp:Content>
